
import Login from '@/views/login/login.vue'
import Home from '@/views/home/index.vue'
import userList from '@/views/user/userList.vue'


const mainMap = [
    {
        path: '/',
        name: 'Index',
        redirect: '/login',
        meta: { auth: true },
        component: Home
    },
    {
        path: '/user',
        redirect: '/user/userList',
        meta: { auth: true},
        component: Home,
        children: [
            {
                path: 'userList', 
                name: 'userList',
                component: userList,
            }
        ]
    },
    {
        path: '/login',
        name: 'login',
        meta: { auth: true },
        component: Login
    },


]
export default [
    ...mainMap
]